<?php /* Smarty version 2.6.13, created on 2011-10-20 20:35:06
         compiled from manage_editcategory.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 't', 'manage_editcategory.tpl', 12, false),array('modifier', 'replace', 'manage_editcategory.tpl', 58, false),)), $this); ?>
<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
<div id='ajaxResponse' class="ajaxResponse"></div>
<h2><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Category<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h2>
<form name="editcat" id="editcat" enctype="multipart/form-data" method="post" action="?mod=<?php echo $_GET['mod']; ?>
&sub1=<?php echo $_GET['sub1']; ?>
">
	<input type="hidden" name="act" value="editcat" />
	<input type="hidden" name="cat_id" value="<?php echo $_GET['id']; ?>
" />
	<table class="editform" width="100%" cellspacing="2" cellpadding="5">
    	<tr>
			<th scope="row" valign="middle">
			<label for="cat_parent"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Category Type:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td>        
	  			<select name='cat_type' id='cat_type' class='postform'>
	  				<option value='0'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></option>
		  			<?php $_from = $this->_tpl_vars['CATTYPE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['cat']['iteration']++;
?>
						<option id='type_<?php echo $this->_tpl_vars['item']->cat_type_id; ?>
' <?php if ($this->_tpl_vars['THECAT']->cat_type == $this->_tpl_vars['item']->cat_type_id): ?>selected<?php endif; ?> value='<?php echo $this->_tpl_vars['item']->cat_type_id; ?>
'>
						<?php echo $this->_tpl_vars['item']->cat_type_name; ?>

					</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
	  		</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="cat_name"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Category name:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td width="67%">
			<input name="cat_name" id="cat_name" type="text" value="<?php echo $this->_tpl_vars['THECAT']->cat_name; ?>
" size="40" /></td>

		</tr>
        <tr>
			<th width="33%" scope="row" valign="top">
			<label for="cat_name"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>url:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td width="67%">
			<input name="url" id="url" type="text" value="<?php echo $this->_tpl_vars['THECAT']->url; ?>
" size="40" /></td>

		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="cat_parent"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Category parent:<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td>        
	  			<select name='cat_parent' id='cat_parent' class='postform'
	  			onchange="checkPosition('<?php echo $_SERVER['SERVER_NAME']; ?>
',this)">
	  				<option value='0'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>None<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></option>
		  			<?php $_from = $this->_tpl_vars['CATS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['cat']['iteration']++;
?>
		  			<?php if ($this->_tpl_vars['THECAT']->cat_parent == $this->_tpl_vars['item']->cat_ID): ?>
			  			<option selected id='cat_parent-<?php echo $this->_tpl_vars['item']->cat_ID; ?>
' value='<?php echo $this->_tpl_vars['item']->cat_ID; ?>
'>
		  			<?php else: ?>
						<option id='cat_parent-<?php echo $this->_tpl_vars['item']->cat_ID; ?>
' value='<?php echo $this->_tpl_vars['item']->cat_ID; ?>
'>
					<?php endif; ?>
					<?php echo ((is_array($_tmp=$this->_tpl_vars['item']->temp_name)) ? $this->_run_mod_handler('replace', true, $_tmp, "—", "&nbsp;&nbsp;&nbsp;") : smarty_modifier_replace($_tmp, "—", "&nbsp;&nbsp;&nbsp;")); ?>
 ( <?php echo $this->_tpl_vars['item']->cat_type_name; ?>
 )
					</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
	  		</td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Logo :<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td width="67%">
			<input type="file" name="cat_logo" />
            </td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="middle">
			</th>
			<td width="67%">
            <img src="<?php echo $this->_tpl_vars['PATH'];  echo $this->_tpl_vars['THECAT']->cat_logo; ?>
" />
            </td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="cat_description"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Description: (optional)<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td><textarea name="cat_description" id="cat_description" 
				rows="5" cols="50" style="width: 97%;"><?php echo $this->_tpl_vars['THECAT']->cat_description; ?>
</textarea></td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="cat_name"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Flash :<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></label></th>
			<td width="67%">
			<input type="file" name="cat_flash" /><br /><br />
            <img src="<?php echo $this->_tpl_vars['PATH'];  echo $this->_tpl_vars['THECAT']->cat_flash; ?>
" />
            </td>
		</tr>
         <tr>
			<th width="33%" scope="row" valign="middle">
			<label for="status">Active</label></th>
			<td width="67%">
				<input name="active" id="active" <?php if ($this->_tpl_vars['THECAT']->active == '1'): ?> checked="checked" <?php endif; ?> type="checkbox" value="1"/>
			</td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="submit" name="submit" value="<?php $this->_tag_stack[] = array('t', array('escape' => false)); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Category &raquo;<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" />
	</p>
</form>
</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>